package it.polimi.swKnights.SWIMv2.ejb.entityBeans;

import java.io.Serializable;

public class FeedbackPk implements Serializable
{
	private long id;

	private String gotBy;
	
	/*
	 * Serial Version ID
	 */
	
	private static final long serialVersionUID = -6969286334507653101L;

	/*
	 * equals and hashCode
	 */
	
	

	@Override
	public int hashCode()
	{
		final int prime = 31;
		int result = 1;
		result = prime * result + ((gotBy == null) ? 0 : gotBy.hashCode());
		result = prime * result + (int) (id ^ (id >>> 32));
		return result;
	}

	@Override
	public boolean equals(Object obj)
	{
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		FeedbackPk other = (FeedbackPk) obj;
		if (gotBy == null)
		{
			if (other.gotBy != null)
				return false;
		}
		else if (!gotBy.equals(other.gotBy))
			return false;
		if (id != other.id)
			return false;
		return true;
	}
	
	/*
	 * Getters and setters
	 */

	public long getId()
	{
		return id;
	}

	public void setId(long id)
	{
		this.id = id;
	}

	public String getGotBy()
	{
		return gotBy;
	}

	public void setGotBy(String gotBy)
	{
		this.gotBy = gotBy;
	}

}
